Python REST API Tutorial for Beginners | How to Build a Flask REST API

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 106

  • @DaveGrayTeachesCode
    @DaveGrayTeachesCode  7 месяцев назад +13

    Leave a comment to let me know what Python topics you want to see in the future 🙌 Thanks!

  • @xyzxyz6095
    @xyzxyz6095 6 месяцев назад +7

    Dave the Great Teacher. Thank you for your generosity with these videos on Python. Be Blessed. Salutations from France.

  • @NicolasJimenezValbuena-k6n
    @NicolasJimenezValbuena-k6n 11 дней назад

    Very useful! I decided to get into flask because I was looking for a fast way to built an api avoiding many settings

  • @Jay2Ops
    @Jay2Ops 2 месяца назад +2

    Fantastic Tutorial!! I work as a DevOps Engineer and this has improved my API knowledge.🎉🎉🥳🥳

  • @nikolaivakulenko375
    @nikolaivakulenko375 Месяц назад +1

    Great explaination, there are no questions arise why you do this or that. Clear speech matters a lot. Thank you!

  • @dev-akeel
    @dev-akeel 6 месяцев назад +4

    Once upon a time Flask used to be called as a micro and minimalistic framework. But today I can see that it has a lot inside it.

  • @muazuidrisy.4732
    @muazuidrisy.4732 6 месяцев назад +6

    Thanks for the video, Mr. Dave. We appreciate it. It would be great if you could make a video covering the complete backend with REST API. It should include user authentication and authorization, email verification, password reset, OTP, welcome message, and user upgrade to, let's say, a super user, etc.

  • @ttaylor9916
    @ttaylor9916 5 месяцев назад +2

    Thanks!

  • @xzex2609
    @xzex2609 6 месяцев назад +6

    🤣🤣 that was the funniest most accurate description of the rest api : they are sitting at rest doing nothing except calling them and serving some data from db.

  • @blackb819
    @blackb819 27 дней назад

    I'd like to thank you with this comment. it has been a while since i wanted to learn restfull api. Back then it was hard for me to understand what restful means and the usecase. when i understood the utility and the fact that in so many backend job post it is in, i said myself , get three hours to work on it.
    I found your tutorial, 40 minutes, thought it will be ok, not too long lol. finaly i did it and it was not that hard. But to master it i think i need to do it 5 or 10 times to understand better the flask-restfull module.

  • @xzex2609
    @xzex2609 6 месяцев назад +1

    every topic in related to backend is good(python). I recently worked with some express js api and it was amazingly simple and direct.

  • @APL33025
    @APL33025 25 дней назад

    That was an excellent tutorial on building a REST API with Python

  • @PINEDARONALD
    @PINEDARONALD 12 дней назад

    Thank you brother for this great I am very new in python but thank you I manage to make it , happy new year by the way

  • @snehasingh1929
    @snehasingh1929 6 месяцев назад +1

    yes please we need the next part awesome tutorial btw

  • @molleker
    @molleker 6 месяцев назад

    Hi Dave, I find your teaching style great. Thanks you very much for the amazing content! I'd definitely love to see more video about web development in Python in general and using Flask in particular.

  • @codebykeoma
    @codebykeoma 6 месяцев назад +1

    Thank you for this! It was helpful. I would like to see a tutorial using a registration form with better data validation.

  • @tomproctor.archive
    @tomproctor.archive 8 дней назад

    Wow that's a learning curve. As a newbie I'm sorta intimidated.

  • @rajendrakole5449
    @rajendrakole5449 6 месяцев назад +1

    Great Series Dave Sir! Love from India ♥️🇮🇳

  • @MrRys
    @MrRys 6 месяцев назад +2

    great tutorial, one thing I have noticed, the abort method's error message needs to be a dict not just a string

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  6 месяцев назад +1

      Yes, I forgot to add message= before the string. Updated the linked repo.

  • @ashwinidhamodharan9694
    @ashwinidhamodharan9694 Месяц назад

    Thanks so much. Easy to follow

  • @devNguy
    @devNguy Месяц назад

    Good setup. Good explanation. Good project.

  • @DivyanshGupta-ef1rt
    @DivyanshGupta-ef1rt 2 месяца назад

    Brilliant lecture!!❤

  • @mahmoudramzy5875
    @mahmoudramzy5875 4 месяца назад

    amazing concise tutorial thank you

  • @danielouattara3857
    @danielouattara3857 6 месяцев назад

    Hello Dave,
    Thank you for your work !
    You provide us with very interesting and valuable content, not only in Python, but also in Next, React, ...etc.
    So in this way, if you miss some inspiration, you could adapt most of the projects you shared with in Next , React, PHP,...etc... to Python using Django or Flask as frameworks.
    Moreover, showing the parallel development of each code (like from Next to Python) could help understand the requirements and the logic migration for a given project.
    For example a Next.js completed project's code could be the starting point, then, you built again the project in Python and explain the logic migration from one to another.
    anyway , thank you again

  • @shashank.s.pandey964
    @shashank.s.pandey964 4 месяца назад

    Thanks Dave, Liked and Subscribed

  • @chrisw5509
    @chrisw5509 6 месяцев назад

    I'm subscribed. Great video, easy to follow, great explanations. I like when you also show some "tips" for using VSC.

  • @hassanmirza2392
    @hassanmirza2392 6 месяцев назад

    Thanks Dave. More data engineering with python courses will be good.

  • @skbalajiusa
    @skbalajiusa 4 месяца назад

    Excellent tutorial

  • @crushfire2004
    @crushfire2004 6 месяцев назад +1

    Continue seems interesting, currently I testing cody, cursor & supermaven

  • @psykoj
    @psykoj 6 месяцев назад

    Great tutorial!

  • @chroniclesofcliches
    @chroniclesofcliches 6 месяцев назад

    Thanks for the hard work put into this🙏 just waiting for one in Django

  • @MuhammadHassan-l5g2d
    @MuhammadHassan-l5g2d 6 месяцев назад

    python topic I want to suggest
    * flask with streamlit, mesop
    also please take your time to create a complete project (never before seen on your channel) using flask and any frontend preferably React.

  • @Huzaifa-p6e
    @Huzaifa-p6e 6 месяцев назад

    Hey Dave can we dockerize the REST flask api which inferences a ml model? , if so any tutorials?

  • @john6283
    @john6283 4 месяца назад

    watching this before my automation dev exam startsssss

  • @LewisSacProduction
    @LewisSacProduction Месяц назад

    Maybe you've already done something like this, but it would be cool if you could make a part 2 of this video and make it work remotly instead of localhost? Thanks, great videos!

  • @Kennethlumor
    @Kennethlumor 5 месяцев назад +1

    Sir please is it true that flask Restful is not maintained again by the community and will be get rid of soon 🔜

  • @_byproxy
    @_byproxy 6 месяцев назад

    Hi! this video came at the perfect time for me and is super useful! If you had any guidance on how would be a good way to format an incoming search query for this type of REST API, I would be eternally grateful.

  • @oussamabjj
    @oussamabjj Месяц назад

    thank you sir i appreciate

  • @KhanhHoang-fi6yh
    @KhanhHoang-fi6yh 6 месяцев назад

    Please compare flask and fastapi, if i want to work with llms and langchain or llamaindex which one is better in your opinion. Thank you Dave for greate videos

  • @Akshaykumarrao-j9t
    @Akshaykumarrao-j9t 6 месяцев назад

    Hi Dave, this content is helpful if you make a video on flask framework full-course quite helpful for everyone can learn and grow
    😊

  • @shahriaralom4547
    @shahriaralom4547 21 день назад

    please make tutorial about writing python following documentation

  • @anjaneyulub2529
    @anjaneyulub2529 6 месяцев назад +1

    Nice content dave❤ pls make video on python with FastAPI

  • @ericofernandes2204
    @ericofernandes2204 6 месяцев назад

    Nice content. Greetings from Brazil. Waiting for a Docker tutorial

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  6 месяцев назад +1

      Glad you like it! Docker on its own or Docker with Python? Here's one I published earlier this year with Docker, PHP, Apache & Postgres: ruclips.net/video/NL23_cVq6XI/видео.html

    • @ericofernandes2204
      @ericofernandes2204 6 месяцев назад

      @@DaveGrayTeachesCode with python

  • @chrisw5509
    @chrisw5509 6 месяцев назад

    Yes, I would like to see more on Data Validation. Also, if you can do a video on FastAPI, I would appreciate that. I've created several FastAPI Web Apps for my personal use. I use MariaDB as my DB Server instead of SQLite. I also prefer to write raw SQL for my queries instead of SQLALchemy. However, I'm a novice and want I would like to improve my Apps.

  • @rexsybimatrimawahyu3292
    @rexsybimatrimawahyu3292 6 месяцев назад

    Awesome video and explanation, is it possible to make a continuation where how we can use the rest api with other non python framework?

  • @phevab
    @phevab 6 месяцев назад +1

    Learnt a lot. Much appreciated @Dave Gray Django and react authentication

  • @wayneforget3218
    @wayneforget3218 Месяц назад

    Newby request....All tests well with Thunderclient but when it comes to releasing the API to users, how do I do that? I have my data on a hosting server and is managed with cPanel. How do I place the API on cPanel and then what is entered in the URL parameter when calling it from xCode? Any quick advice on that please?

    • @wayneforget3218
      @wayneforget3218 Месяц назад

      Scratch that. I think I figured it out. Very good video explaining the basics, thank you Dave

  • @jordymaryns4945
    @jordymaryns4945 6 месяцев назад

    Nice video. Would it be possible to make a video that takes this concept and consumes it via NextJs? As a way to combine the best of both languages. (ideally Django, but I would assume that both will be similar)

  • @Umesh-p4u
    @Umesh-p4u 2 месяца назад

    After listening to tutorial, when I try to create_db.py; I'm getting a (Runtime Error: Either 'SQLALCHEMY_DATABASE_URI' or 'SQLALCHEMY_BINDS' must be set.); Mr. Dave. Please help me with your valuable suggestions to overcome the error.
    Thanks in advance

    • @timl4844
      @timl4844 Месяц назад

      I had the same problem, my mistake was that I wrote ['SQLAlchemy_DATABASE_URI'] in the app.config instead of everything uppercase.
      Also, have you checked that you typed URI instead of URL?
      If not check for typos, missing parenthesis or colons - those are usually what causes errors for me 😅

  • @jayyay693
    @jayyay693 6 месяцев назад

    Why is the virtual env needed I thought it’s not necessary please or anyone explain why it’s needed thanks

    • @asiamies9153
      @asiamies9153 3 месяца назад +1

      So that you don't install all the packets globally but instead just locally for this project alone. That way it doesn't interfere with other projects you might have

  • @abzmantawil
    @abzmantawil 6 месяцев назад +11

    waiting for DJANGO API

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  6 месяцев назад +9

      I plan to do this topic for sure!

    • @joaoarthurbandeira
      @joaoarthurbandeira 6 месяцев назад +3

      @@DaveGrayTeachesCodealso it would be great to show us how to integrate django rest with nextjs! 🙌🏻

  • @VenkatesanVenkat-fd4hg
    @VenkatesanVenkat-fd4hg 6 месяцев назад

    Requires to discuss JWT and other backend related series on python

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  6 месяцев назад

      Agreed - additional backend topics will be a great addition 🙌

  • @hawkhm97
    @hawkhm97 4 месяца назад

    Like most technical they always forget things "How do you changr into the flask dir" I was teacher and when you are teaching create an outline and don't teach off the cuff.

  • @KusalKalinga-g6d
    @KusalKalinga-g6d 6 месяцев назад

    Please Do FASTAPI series

  • @Mona.Guerin
    @Mona.Guerin 6 месяцев назад

    building full websites with Flask

  • @ajiteshmishra0005
    @ajiteshmishra0005 6 месяцев назад

    Create same video for ReactJS and NodeJS
    So, that Frontend Developers can benefitted

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  6 месяцев назад

      My Node.js course creates a full backend REST API here: ruclips.net/video/f2EqECiTBL8/видео.html ...And I have a React playlist that creates a frontend to go with it here: ruclips.net/p/PL0Zuz27SZ-6PRCpm9clX0WiBEMB70FWwd

    • @ajiteshmishra0005
      @ajiteshmishra0005 6 месяцев назад

      ​@@DaveGrayTeachesCode A great Thank you Sir.
      We are learning more with your explanation.
      Keep uploading such videos.
      We wait for your explanation on every topics.

  • @brancode404
    @brancode404 5 месяцев назад

    Please make Django Ninja videks

  • @nrayclips
    @nrayclips 6 месяцев назад

    All hail to King Viserys Targaryen👍

  • @ggr0go
    @ggr0go 6 месяцев назад

    Full stack flask app

  • @narayanadhikari8157
    @narayanadhikari8157 6 месяцев назад

    Yes Yes Yes.

  • @babar-khan
    @babar-khan 6 месяцев назад

    why many people are runnign towardds to python now ?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  6 месяцев назад

      I have not seen this happen. I have always used both JavaScript and Python.

  • @Shriram279-1
    @Shriram279-1 6 месяцев назад

    seems to be very complicated for a beginner who is good at basics of python. Got headache by going through it. I wonder ppl commented here they got to know the content very well. U ppl serious?

    • @asiamies9153
      @asiamies9153 3 месяца назад

      If you only know Python basics, this might not be the best next step. Maybe look into SQL databases, APIs, REST and web development in general first

  • @zlackbiro
    @zlackbiro 6 месяцев назад

    Flask is the worst web framework created in history of Web development. Dude, That crap is so slow that can't even finish the simple benchmark.

    • @asiamies9153
      @asiamies9153 3 месяца назад

      Sounds like you're not using it the way it's supposed to be used

  • @chrisw1462
    @chrisw1462 3 месяца назад

    @8:04 SQL doesn't stand for 'sequel'. That's just people that think they're smart pronouncing the initials for Structured Query Language. (Not that I have a thing against pronouncing acronyms. :-P) Sequel Technologies made Sequel DBMS, a commercial database program that did SQL, obviously. They fell out of favor and seem to have disappeared. So that, along with the obvious pronunciation of the initials, was the origin of SQL = sequel.

    • @asiamies9153
      @asiamies9153 3 месяца назад +1

      Nah, it's one of the widely used ways of pronouncing it, nothing to do with "thinking they're smart"

  • @1duducm
    @1duducm Месяц назад

    Thanks a lot